<?php

namespace app\client\controller;

use app\client\services\AddressService;

class Address extends \app\BaseController
{
    protected $middleware=['CheckClientTokenMiddleware'];
    public function index(){
        $p=$this->request->get();
        $p['customer_id']=$this->request->adminUid;
        AddressService::index($p);
    }
    public function edit(){
        $p=$this->request->post();
        $p['customer_id']=$this->request->adminUid;
        AddressService::edit($p);
    }
    public function del(){
        $p=$this->request->post();
        AddressService::del($p);
    }

}
